package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.pojo.dto.MaintenVendorQueryDto;
import com.group.eams.pojo.entity.MaintenVendor;
import com.group.eams.pojo.vo.MaintenVendorListVo;
import com.group.eams.service.MaintenVendorService;
import com.group.eams.mapper.MaintenVendorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 恩哲欣
* @description 针对表【mainten_vendor(维保商管理)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class MaintenVendorServiceImpl extends ServiceImpl<MaintenVendorMapper, MaintenVendor> implements MaintenVendorService{

    @Autowired
    private MaintenVendorMapper maintenVendorMapper;
    @Override
    public Page<MaintenVendorListVo> findByQueryDto(MaintenVendorQueryDto maintenVendorQueryDto){
        Page<MaintenVendorListVo> page = new Page<>(maintenVendorQueryDto.getPage(), maintenVendorQueryDto.getLimit());
        return maintenVendorMapper.findByQueryDto(page,maintenVendorQueryDto);
    }
}
